/* copyleft (C) GPL3 {{{2
 * Filename:	caller.c
 *
 * Author:	arrow <arrow_zhang@sdc.sercomm.com>
 * Created at:  Fri Aug 24 19:52:58 2007
 * }}}*/
/*header files	{{{1*/
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/kmod.h>
/*}}}*/

/*declaration		{{{1*/
#define sbup printk
/*}}}*/

/*functions		{{{1*/
int __init caller_init(void)
{
	char *argv[] = {"test call user mode bin ok\n",
		"call in kernel\n", NULL};

	sbup("caller initing\n");
	sbup("will call userspace:%s\n", USERFILE);
	call_usermodehelper(USERFILE, argv, NULL, 0);
	return 0;
}

void __exit caller_exit(void)
{
	sbup("caller exiting\n");
}
module_init(caller_init);
module_exit(caller_exit);

/* vim:fdm=marker:ts=8:ft=c:norl:fdl=1:
 * }}}*/
